public class sranddom {
    public static void main(String[] args)
    {
        int i = 0;
        int count = 0;
        int Max = 0;
        int Min = 0;
        while(i<100)
        {
            int random = (int)(Math.random()*100);
            if(random>Max)
            {
                Max = random;
            }
            if(random<Min)
            {
                Min = random;
            }
            if(random>50)
            {
                count++;
            }
            i++;
        }
        System.out.println(count);
        System.out.println(Max);
        System.out.println(Min);
    }
    
}
